import styled from "styled-components";

export const HomeWrapper = styled.div`
    overflow: hidden;
    /* padding: 5px; */
    width: 950px;
    margin: 5px auto;
    /* box-shadow: 0 0 4px lightgray;
    border-radius: 2px; */
`;

export const HomeLeft = styled.div`
    width: 625px;
    margin-left: 15px;
    padding-top: 30px;
    float: left;
    /* box-shadow: 0 0 4px lightgray;
    border-radius: 2px; */

    .banner-img {
        width: 625px;
        height: 270px;
    }
`;

export const HomeRight = styled.div`
    width: 300px;
    margin: 20px auto 20px auto;
    float: right;
    /* box-shadow: 0 0 4px lightgray;
    border-radius: 2px; */
`;

export const BackTop = styled.div`
    position: fixed;
    right: 100px;
    bottom: 100px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border: 1px solid #ccc;
    font-size: 12px;
    cursor: pointer;
`;

export const TopicWrapper = styled.div`
    overflow: hidden;
    padding: 20px 0 10px 0;
    margin-left: -18px;
    border-bottom: 1px solid #dcdcdc;
`;

export const TopicItem = styled.div`
    float: left;
    height: 32px;
    line-height: 32px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    padding-right: 10px;
    font-size: 14px;
    margin-left: 18px;
    margin-bottom: 18px;
    .topic-pic {
        width: 32px;
        height: 32px;
        display: block;
        float: left;
        margin-right: 10px;
    }
`;

// List
export const ListItem = styled.li`
    padding: 20px 0;
    border-bottom: 1px solid #dcdcdc;
    overflow: hidden;
    .pic {
        display: block;
        width: 125px;
        height: 100px;
        float: right;
        border-radius: 10px;
    }
`;

export const ListInfo = styled.div`
    width: 500px;
    float: left;
    .title {
        line-height: 27px;
        font-size: 18px;
        font-weight: bold;
        color: #333;
    }
    .desc {
        font-size: 13px;
        line-height: 24px;
        color: #999999;
    }
`;

export const LoadMore = styled.li`
    width: 100%;
    height: 40px;
    line-height: 40px;
    background: #a5a5a5;
    text-align: center;
    border-radius: 20px;
    margin: 30px;
    color: white;
    cursor: pointer;
`;

// Recomend
export const RecommendWrapper = styled.div`
    margin: 10px 0 20px;
    width: 280px;
`;

export const RecommendItem = styled.div`
    width: 280px;
    height: 50px;
    margin-top: 5px;
    background: url(${props => props.imgUrl}) no-repeat;
    background-size: contain;
    .desc {
        font-size: 14px;
        margin-top: 10px;
        text-indent: 10px;
    }
`;

// Writer
export const WriterWrapper = styled.div`
    width: 278px;
    border: 1px solid #dcdcdc;
    border-radius: 3px;
    height: 300px;
    line-height: 300px;
    text-align: center;
`;
